package com.boruan.qq.zxgylibrary.service.model;

import java.util.List;

/**
 * Created by 崔琦 on 2019/9/5.
 * des: 购物车数据实体
 */

public class ShopCarDataBean {

    /**
     * errorCode : null
     * message : success
     * data : [{"shopId":2000000543,"shopName":"阿飞药铺","longitude":120.289817,"latitude":36.000634,"range":0,"isopen":1,"shopCartSkuDTOList":[{"skuId":1000029798,"skuName":"1000029798名称","skuImg":"","quantity":1,"prop":"","marketPrice":0,"salePrice":100},{"skuId":1000029808,"skuName":"1000029808名称","skuImg":"","quantity":1,"prop":"","marketPrice":0,"salePrice":100}]}]
     * success : true
     */

    private String code;
    private String message;
    private boolean success;
    private List<ResultBean> result;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public List<ResultBean> getResult() {
        return result;
    }

    public void setResult(List<ResultBean> data) {
        this.result = data;
    }

    public static class ResultBean {
        /**
         * shopId : 2000000543
         * shopName : 阿飞药铺
         * shopAddress : 南京路
         * longitude : 120.289817
         * latitude : 36.000634
         * range : 0
         * isopen : 1
         * shopCartSkuDTOList : [{"skuId":1000029798,"skuName":"1000029798名称","skuImg":"","quantity":1,"prop":"","marketPrice":0,"salePrice":100},{"skuId":1000029808,"skuName":"1000029808名称","skuImg":"","quantity":1,"prop":"","marketPrice":0,"salePrice":100}]
         */

        private int shopId;
        private String shopName;
        private String shopAddress;
        private double longitude;
        private double latitude;
        private int range;
        private int isopen;
        private int totalPrice;
        private int fullReducePrice;
        private List<ShopCartSkuDTOListBean> shopCartSkuDTOList;

        private int medicalPayFlag = 0;//是否支持余额支付[0-不支持，1-支持]
        private int deliveryFee;
        private int freightReduceLimit; //满减配送费金额，单位分，-1-不满减配送费
        private int showMedicalPayFlag = 0; //是否显示余额支付[0-不显示，1-显示]

        public int getMedicalPayFlag() {
            return medicalPayFlag;
        }

        public int getShowMedicalPayFlag() {
            return showMedicalPayFlag;
        }

        public void setShowMedicalPayFlag(int showMedicalPayFlag) {
            this.showMedicalPayFlag = showMedicalPayFlag;
        }

        public void setMedicalPayFlag(int medicalPayFlag) {
            this.medicalPayFlag = medicalPayFlag;
        }

        public int getDeliveryFee() {
            return deliveryFee;
        }

        public void setDeliveryFee(int deliveryFee) {
            this.deliveryFee = deliveryFee;
        }

        public int getFreightReduceLimit() {
            return freightReduceLimit;
        }

        public void setFreightReduceLimit(int freightReduceLimit) {
            this.freightReduceLimit = freightReduceLimit;
        }

        public int getShopId() {
            return shopId;
        }

        public void setShopId(int shopId) {
            this.shopId = shopId;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public String getShopAddress() {
            return shopAddress;
        }

        public void setShopAddress(String shopAddress) {
            this.shopAddress = shopAddress;
        }

        public double getLongitude() {
            return longitude;
        }

        public void setLongitude(double longitude) {
            this.longitude = longitude;
        }

        public double getLatitude() {
            return latitude;
        }

        public void setLatitude(double latitude) {
            this.latitude = latitude;
        }

        public int getRange() {
            return range;
        }

        public void setRange(int range) {
            this.range = range;
        }

        public int getIsopen() {
            return isopen;
        }

        public void setIsopen(int isopen) {
            this.isopen = isopen;
        }

        public int getTotalPrice() {
            return totalPrice;
        }

        public void setTotalPrice(int totalPrice) {
            this.totalPrice = totalPrice;
        }

        public int getFullReducePrice() {
            return fullReducePrice;
        }

        public void setFullReducePrice(int fullReducePrice) {
            this.fullReducePrice = fullReducePrice;
        }

        public List<ShopCartSkuDTOListBean> getShopCartSkuDTOList() {
            return shopCartSkuDTOList;
        }

        public void setShopCartSkuDTOList(List<ShopCartSkuDTOListBean> shopCartSkuDTOList) {
            this.shopCartSkuDTOList = shopCartSkuDTOList;
        }

        public static class ShopCartSkuDTOListBean {
            /**
             * skuId : 1000029798
             * skuName : 1000029798名称
             * skuImg :
             * quantity : 1
             * prop :
             * marketPrice : 0
             * salePrice : 100
             */

            private int skuId;
            private String skuName;
            private String skuImg;
            private int quantity;
            private String prop;
            private int marketPrice;
            private long salePrice;

            public int getSkuId() {
                return skuId;
            }

            public void setSkuId(int skuId) {
                this.skuId = skuId;
            }

            public String getSkuName() {
                return skuName;
            }

            public void setSkuName(String skuName) {
                this.skuName = skuName;
            }

            public String getSkuImg() {
                return skuImg;
            }

            public void setSkuImg(String skuImg) {
                this.skuImg = skuImg;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public String getProp() {
                return prop;
            }

            public void setProp(String prop) {
                this.prop = prop;
            }

            public int getMarketPrice() {
                return marketPrice;
            }

            public void setMarketPrice(int marketPrice) {
                this.marketPrice = marketPrice;
            }

            public long getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(long salePrice) {
                this.salePrice = salePrice;
            }
        }
    }
}
